REM This script uses 7-Zip to create zip files. Download 7za.exe from here: http://www.7-zip.org/download.html
REM Just use the command line version package and extract the exe file to your Windows\system32 folder
set x=google-shortcuts-lite
md build
cd build
md images
cd images
md options
md toolbar_icons
md new_images
cd ..
cd ..
cd images

copy *.gif ..\build\images
copy *.png ..\build\images
cd new_images
copy *.png ..\..\build\images\new_images
cd ..
cd options
copy *.png ..\..\build\images\options
copy *.gif ..\..\build\images\options
cd ..
cd toolbar_icons
copy *.png ..\..\build\images\toolbar_icons
cd ..
cd ..

copy *.png build
copy *.html build
copy manifest.json build

rem Hier wird die aktuelle Version bestimmt:
for /f "tokens=1,* delims=:" %%i in ('findstr /n  $ manifest.json') do @( 
        for /L %%a in (3,1,3) do @if %%i==%%a set myLine=%%j
)
set version=%myLine:~13,7%

cd build
7za a -tzip "%x%_%version%.zip" * -r -mx=9
move "%x%_%version%.zip" ..\
cd ..
rd build /s/q

rem pause